﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListLoanPhone.ascx.cs"
    Inherits="Admin_UserControl_ucListLoanPhone" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    .style1
    {
        text-align: center;
    }
</style>
<div class=" block">
</div>
<div class="Post">
    <div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                <h2 style="text-align: center" class="PostHeaderIcon-wrapper">
                    LOAN PHONE</h2>
                <div class="PostContent">
                    <asp:HyperLink ID="hyNewLPhone" runat="server" NavigateUrl="~/Admin/AddNewLoanPhone.aspx">Add New Loan Phone</asp:HyperLink>
                </div>
                <div class="PostContent" style="text-align: center">
                    <div class="article">
                        <span class="print-link"></span>
                    </div>
                    <asp:Panel ID="panel" runat="server" Height="400px" ScrollBars="Auto">
                        <asp:GridView ID="grdLoanPhone" runat="server" Width="100%" AutoGenerateColumns="False"
                            CssClass="grd" OnRowDataBound="grdLoanPhone_RowDataBound">
                            <Columns>
                                <asp:TemplateField HeaderText="LoanPhoneID">
                                    <ItemTemplate>
                                        <%# Eval("LPhoneID")%>
                                        <asp:HiddenField ID="hid" runat="server" />
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Font-Bold="true" Width="70px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Loan Phone Brand">
                                    <ItemTemplate>
                                        <%# Eval("LPhoneBrand")%>
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Width="100px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Loan Phone Model">
                                    <ItemTemplate>
                                        <%# Eval("LPhoneModel")%>
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Width="100px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Phone IMEI No">
                                    <ItemTemplate>
                                        <%# Eval("LPIMENo")%>
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Width="90px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="PAccessorires Included">
                                    <ItemTemplate>
                                        <%# Eval("AccessoriresIncluded")%>
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Width="130px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Deposit">
                                    <ItemTemplate>
                                        <%# Eval("Deposit")%>
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Width="80px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Loan Fee">
                                    <ItemTemplate>
                                        <%# Eval("LoanFee")%>
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Width="80px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Loan Status">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="drStatus" runat="server" OnSelectedIndexChanged="drStatus_SelectedIndexChanged"
                                            AutoPostBack="true">
                                            <asp:ListItem Value="0" Text="Not Loan"></asp:ListItem>
                                            <asp:ListItem Value="1" Text="Loaned"></asp:ListItem>
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Width="100px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Notes">
                                    <ItemTemplate>
                                        <%# Eval("Notes") %>
                                    </ItemTemplate>
                                    <HeaderStyle />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Width="100px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Delete">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="btnModelDelete" runat="server" CausesValidation="false" CommandName="delete"
                                            CommandArgument='<%# Eval("LPhoneID") %>' ImageUrl="~/Admin/image/del.gif" OnClick="btnModelDelete_Click" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle CssClass="grdHeader" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle CssClass="grdAlternateRow" />
                            <PagerSettings PageButtonCount="6" />
                            <RowStyle CssClass="grdRow" />
                        </asp:GridView>
                    </asp:Panel>
                </div>
                <div class="full">
                    <p class="main">
                        &nbsp;</p>
                    <%--</div>--%>
                    <%--</div>--%>
                </div>
                <div class="cleared">
                </div>
                <div class="PostFooterIcons metadata-icons">
                </div>
            </div>
            <div class="cleared">
            </div>
        </div>
    </div>
</div>
